Skip to main content

Extract PDF Page Range

AutomatR.DefaultActivities.PDF.ExtractPDFPageRange

The "Extract PDF Page Range" activity in AutomatR is designed to extract a specified range of pages from a PDF document. This activity enhances automation processes by allowing users to manipulate PDF files, extracting specific pages based on the defined range. It is particularly useful for scenarios where only a subset of pages is required from a larger PDF document.

Properties

NameDescription
Input
Input File NameSpecifies the path of the PDF from which to extract a specific range of pages. String variables containing the file path.
Output File NameSpecifies the name along with the path for the file generated from the extracted range of pages. String variables containing the output file path.
OverwriteWhen selected, overwrites the file with the extracted content if the output file already exists. Boolean variables to control overwrite behavior.
PasswordSpecifies the password of the PDF file if applicable. Object variables containing the password.
RangeSpecifies the range of pages to extract. It can be a single page ("7"), a range of pages ("7-12"), or a complex range ("2-5, 7, 15-End" or "All"). String variables containing the page range.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variable or argument containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Extract PDF Page Range" activity. Integer variables containing the delay duration. Ex.: If the amount of time is 1000 milliseconds or 1 sec, i.e. 1.

How to use:

  1. Drag and drop the "Extract PDF Page Range" activity onto the workflow.
  2. Configure the properties by specifying the input file name, output file name, password (if applicable), page range, and other optional settings.
  3. Optionally, configure the delay.
  4. Execute the workflow to extract the specified range of pages from the PDF document.

Example: Consider an example where the "Extract PDF Page Range" activity is used to extract pages 5 to 10 from a PDF file:

Extract PDF Page Range:
Input File Name: "C:\Documents\Sample.pdf"
Output File Name: "C:\Documents\ExtractedPages.pdf"
Overwrite: true
Password: "mypassword"
Range: "5-10"

In this example, the activity extracts pages 5 to 10 from the input PDF file, saves the result as "ExtractedPages.pdf," and overwrites the file if it already exists.